import request from '@/utils/request';


/**登录 */
export function login(username: string, password: string) {
  return request.post('/user/login', { username, password })
}

/**退出 */
export function logout() {
  return request.post('/user/logout')
}

/**获取管理员信息 */
export function getInfo() {
  return request.get('/user/info')
}
